# ---------------------------------------------------------------------         
# Compiler selection                                                            
# ---------------------------------------------------------------------         

CCC = g++

# ---------------------------------------------------------------------         
# Compiler options                                                              
# ---------------------------------------------------------------------         

CCFLAGS = -m64 -O -fPIC -fexceptions -DIL_STD -g -Wall #-DNDEBUG

# ---------------------------------------------------------------------         
# Link options and libraries                                                    
# ---------------------------------------------------------------------         

CCLNFLAGS = -lm #-pthread 

#------------------------------------------------------------                   
#  make all      : to compile the examples.                                     
#  make execute  : to compile and execute the examples.                         
#------------------------------------------------------------    

all: DP

DP: DP.o
	/bin/rm -f DP
	$(CCC) $(LINKFLAGS) $(CCFLAGS) DP.o $(CCLNFLAGS) -o DP

DP.o: DP.cc DP.h
	/bin/rm -f DP.o
	$(CCC) $(CCFLAGS) DP.cc -c

clean:
	/bin/rm -f *~ *.o DP
